public void addRefValue(Attribute attribute, ReferenceInfo info) throws RaplaException { if (info == null) { return; } if (attribute.getRefType() != info.getType()) { throw new RaplaException( "Different reference type exepcted " + attribute.getRefType() + " but was " + info.getType()); } String attributeKey = attribute.getKey(); final String id = info.getId(); addValue(attributeKey, id); }