question: public static Map < String , Object > updateDataResourceAndText ( DispatchContext dctx , Map < String , ? extends Object > context ) { Map < String , Object > thisResult = updateDataResourceMethod ( dctx , context ) ; if ( thisResult . get ( ModelService . RESPONSE_MESSAGE ) != null ) { return ServiceUtil . returnError ( ( String ) thisResult . get ( ModelService . ERROR_MESSAGE ) ) ; } String dataResourceTypeId = ( String ) context . get ( "dataResourceTypeId" ) ; if ( dataResourceTypeId != null && dataResourceTypeId . equals ( "ELECTRONIC_TEXT" ) ) { thisResult = updateElectronicText ( dctx , context ) ; if ( thisResult . get ( ModelService . RESPONSE_MESSAGE ) != null ) { return ServiceUtil . returnError ( ( String ) thisResult . get ( ModelService . ERROR_MESSAGE ) ) ; } } return ServiceUtil . returnSuccess ( ) ; }
target:  A top-level service for updating a DataResource and ElectronicText together.