LocalRpcService service = getService(packageName);
if (service == null) {
throw new CallNotFoundException(packageName, methodName);
}
LocalCapabilitiesEnvironment capEnv = context.getLocalCapabilitiesEnvironment();
CapabilityStatus capabilityStatus = capEnv
.getStatusFromMethodName(packageName, methodName);
if (!CapabilityStatus.ENABLED.equals(capabilityStatus)) {
throw new ApiProxy.CapabilityDisabledException(
"Setup in local configuration.", packageName, methodName);
}