public static Operation convertMobileOperationToOperation(MobileOperation mobileOperation) {
   Operation operation = new Operation();
   Properties properties = new Properties();
   operation.setCode(mobileOperation.getFeatureCode());
   for (MobileOperationProperty mobileOperationProperty : mobileOperation.getProperties()) {
     properties.put(mobileOperationProperty.getProperty(), mobileOperationProperty.getValue());
   }
   operation.setProperties(properties);
   return operation;
 }
 public static MobileOperation convertToMobileOperation(Operation operation) {
   MobileOperation mobileOperation = new MobileOperation();
   MobileOperationProperty operationProperty;
   List<MobileOperationProperty> properties = new LinkedList<MobileOperationProperty>();
   mobileOperation.setFeatureCode(operation.getCode());
   mobileOperation.setCreatedDate(new Date().getTime());
   Properties operationProperties = operation.getProperties();
   for (String key : operationProperties.stringPropertyNames()) {
     operationProperty = new MobileOperationProperty();
     operationProperty.setProperty(key);
     operationProperty.setValue(operationProperties.getProperty(key));
     properties.add(operationProperty);
   }
   mobileOperation.setProperties(properties);
   return mobileOperation;
 }