Order management in java.