// find matching parameter
if (previous instanceof ParameterMetaData)
{
ParameterMetaData parameter = (ParameterMetaData) previous;
String[] paramTypes = Configurator.getParameterTypes(false, parameters);
ConstructorInfo ci = Configurator.findConstructorInfo(beanInfo.getClassInfo(), paramTypes);
return applyCollectionOrMapCheck(ci.getParameterTypes()[parameter.getIndex()].getType());
}
else
{
// currently value constructor supports only values that are instances of class itself
// this will add another instance with the same class to context