@SuppressWarnings("unchecked")
private static Object calculateParameterValue(Class parameterType,
Annotation[] parameterAnnotations, ServiceLocator locator,
Map<Class, Object> parameterDefaults)
{
InjectService is = findAnnotation(parameterAnnotations, InjectService.class);
if (is != null)
{
String serviceId = is.value();
return locator.getService(serviceId, parameterType);
}
Inject i = findAnnotation(parameterAnnotations, Inject.class);