}
// If the class has any type parameters, filling them in with wildcards
Type serviceType;
if (serviceClass.getTypeParameters().length > 0) {
serviceType = new ParameterizedTypeImpl(serviceClass, createWildcards(serviceClass.getTypeParameters().length), null);
} else {
serviceType = serviceClass;
}
ObjectServiceSpecification osSpec = new ObjectServiceSpecification((Class<?>) osTypeParameter, serviceType, serviceClass);