public ServiceMethod createAndGatherImports ( Method method , ImportSet imports ) { ServiceMethod sm = new ServiceMethod ( method ) ; sm . gatherImports ( imports ) ; return sm ; }
Creates a new service method and adds its basic imports to a set .