public static Map<String,Object> updateFile(DispatchContext dctx,Map<String,? extends Object> context){
  Map<String,Object> result=null;
  try {
    result=updateFileMethod(dctx,context);
  }
 catch (  GenericServiceException e) {
    return ServiceUtil.returnError(e.getMessage());
  }
  return result;
}

public static Map < String , Object > updateFile ( DispatchContext dctx , Map < String , ? extends Object > context ) { Map < String , Object > result = null ; try { result = updateFileMethod ( dctx , context ) ; } catch ( GenericServiceException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } return result ; }
a service wrapper for the updatefilemethod method . forces permissions to be checked .
