question: public static Map < String , Object > createDataResourceAndText ( DispatchContext dctx , Map < String , ? extends Object > rcontext ) { Map < String , Object > context = UtilMisc . makeMapWritable ( rcontext ) ; Map < String , Object > result = FastMap . newInstance ( ) ; Map < String , Object > thisResult = createDataResourceMethod ( dctx , context ) ; if ( thisResult . get ( ModelService . RESPONSE_MESSAGE ) != null ) { return ServiceUtil . returnError ( ( String ) thisResult . get ( ModelService . ERROR_MESSAGE ) ) ; } result . put ( "dataResourceId" , thisResult . get ( "dataResourceId" ) ) ; context . put ( "dataResourceId" , thisResult . get ( "dataResourceId" ) ) ; String dataResourceTypeId = ( String ) context . get ( "dataResourceTypeId" ) ; if ( dataResourceTypeId != null && dataResourceTypeId . equals ( "ELECTRONIC_TEXT" ) ) { thisResult = createElectronicText ( dctx , context ) ; if ( thisResult . get ( ModelService . RESPONSE_MESSAGE ) != null ) { return ServiceUtil . returnError ( ( String ) thisResult . get ( ModelService . ERROR_MESSAGE ) ) ; } } return result ; }
target:  A top-level service for creating a DataResource and ElectronicText together.