public Object refreshUuidPath()

in src/main/java/org/apache/jackrabbit/ocm/manager/objectconverter/impl/SimpleFieldsHelper.java [133:163]


	public Object refreshUuidPath(Session session, ClassDescriptor classDescriptor, Node node, Object object)
	{
		Object initializedBean = object;
		try {
			if (initializedBean == null)
			{
				return null;
			}
			
			FieldDescriptor pathField = classDescriptor.getPathFieldDescriptor();
			if (pathField != null)
			{
			    ReflectionUtils.setNestedProperty(initializedBean, pathField.getFieldName(), node.getPath());
			}
			
			FieldDescriptor uuidField = classDescriptor.getUuidFieldDescriptor();
			if (uuidField != null)
			{
				ReflectionUtils.setNestedProperty(initializedBean, uuidField.getFieldName(), node.getIdentifier());
			}
			
		} catch (ValueFormatException vfe) {
			throw new ObjectContentManagerException(
					"Cannot retrieve properties of object " + object + " from node " + node, vfe);
		} catch (RepositoryException re) {
			throw new org.apache.jackrabbit.ocm.exception.RepositoryException( "Cannot retrieve properties of object " + object
							+ " from node " + node, re);
		}

		return initializedBean;
	}