List<String> splitted = StringUtils.split(attribute, '.');
if (splitted.size() <= 1) {
throw new RuntimeException("Cannot create attribute without dot access.");
}
if (splitted.size() == 2) {
return new Attribute(new Name(splitted.get(0), Name.Load, false), new NameTok(splitted.get(1),
NameTok.Attrib), Attribute.Load);
}
//>2
return new Attribute(createAttribute(FullRepIterable.getWithoutLastPart(attribute)), new NameTok(
splitted.get(splitted.size() - 1), NameTok.Attrib), Attribute.Load);
}