String name = JavaIntrospectionHelper.toPropertyName(method.getName());
if (ComponentContext.class.isAssignableFrom(paramType) || RequestContext.class.equals(paramType)) {
JavaElementImpl element = new JavaElementImpl(method, 0);
element.setName(name);
element.setClassifer(org.apache.tuscany.sca.implementation.java.introspect.impl.Resource.class);
JavaResourceImpl resource = new JavaResourceImpl(element);
type.getResources().put(resource.getName(), resource);
} else {
throw new UnknownContextTypeException(paramType.getName());
}
}