public AttributeName getType() { AttributeName res = null; { if (resource != null) { res = resource.getType(); } } return res; }