public void setBeanProperties(Set<IBeanProperty> properties) {
beanProperties = new LinkedHashSet<PropertyValue>();
for (IBeanProperty property : properties) {
if (property.getValue() instanceof IBeanReference) {
IBeanReference reference = (IBeanReference) property.getValue();
SerializableRuntimeBeanReference rbr = new SerializableRuntimeBeanReference();
rbr.setBeanName(reference.getBeanName());
rbr.setToParent(false);
rbr.setSource(property.getElementSourceLocation());
beanProperties.add(new PropertyValue(property.getElementName(), rbr));
}
}