Java Function for Chain Code Development