private void assignBehaviors() throws BehaviorInstantiationException {
Cambridge bindings = Cambridge.getInstance();
if (attributes != null) {
for (Attribute a : attributes.values()) {
if (a.isDynamic()) {
DynamicAttributeKey key = new DynamicAttributeKey(a.getNamespaceUri(), a.getAttributeNameSpace(), a.getAttributeName());
TagBehavior behavior;
try {
behavior = bindings.getBehavior(key, attributes, a.getLine(), a.getColumn());
} catch (ExpressionParsingException e) {
throw new BehaviorInstantiationException("Error in parsing expression", e, getBeginLine(), getBeginColumn());