public static Object translateOutputPushNotificationsDevice(BaseModel<?> oldModel) { PushNotificationsDeviceClp newModel = new PushNotificationsDeviceClp(); newModel.setModelAttributes(oldModel.getModelAttributes()); newModel.setPushNotificationsDeviceRemoteModel(oldModel); return newModel; }