String[] param = queryParameter.split("=");
if(param.length != 2)
throw new IllegalArgumentException("Could not parse query " + queryParameter);
LinkAttribute linkAttribute;
int attributeType = LinkAttribute.getAttributeType(param[0]);
if(attributeType == LinkAttribute.STRING_ATTRIBUTE)
linkAttribute = new StringLinkAttribute(param[0], param[1]);