src/com/vehiclerental/presentationLayer/headOffice/BaseHeadOfficeController.java
/**
     * Generate a success response message with a given operation code, and object
     *
     * @param operationCode given operation code
     * @param entity given response object
     * @return the generated response message
     */
Generate a success response message with a given operation code, and object
@param operationCode given operation code
@param entity given response object
@return the generated response message
Generate a success response message with a given operation code and object @param operationCode given operation code @param entity given response object @return the generated response message
protected static <T> HeadOfficeResponseMessage generateSuccessfulResponse(int operationCode, T entity) {
        HeadOfficeResponseMessage headOfficeResponseMessage = new HeadOfficeResponseMessage();
        headOfficeResponseMessage.OperationCode = operationCode;
        headOfficeResponseMessage.Status = 200;
        headOfficeResponseMessage.SerializedObject = SerializationUtils.serialize(entity);
        return headOfficeResponseMessage;
    }
protected static < T > HeadOfficeResponseMessage generateSuccessfulResponse ( int operationCode , T entity ) { HeadOfficeResponseMessage headOfficeResponseMessage = new HeadOfficeResponseMessage ( ) ; headOfficeResponseMessage . OperationCode = operationCode ; headOfficeResponseMessage . Status = 200 ; headOfficeResponseMessage . SerializedObject = SerializationUtils . serialize ( entity ) ; return headOfficeResponseMessage ; }
Generate a success response message with a given operation code, and object
 @param operationCode given operation code
 @param entity given response object
 @return the generated response message
Generate a success response message with a given operation code and object @param operationCode given operation code @param entity given response object @return the generated response message