expectedType = propertyType;
}
ResourceParameter resourceParameter = getDependency();
String expression = resourceParameter.expression();
String name = resourceParameter.name();
if (expression.length() != 0 && name.length() != 0) {
throw new IllegalStateException(MessageFormat.format(
"'name' and 'expression' should not be specified simultaneously: {0}", resourceParameter));