}
if (setMetadataMethod != null) {
Class<?> metadataType = (setMetadataMethod.getParameterTypes())[0]; // There is only one parameter
Object metadataInstance = metadataType.newInstance();
XmlInputStream xis = createCorrespondingXmlInputStream(metadataComponent);
Method loadMethod = metadataType.getMethod("load", XmlInputStream.class, TypeMapper.class);
loadMethod.invoke(metadataInstance, xis, new TypeMapper());
setMetadataMethod.invoke(containerMember, metadataInstance);
}
}