You can use following instead:
List<Attribute> attrs = this.getAttributes(sess, resource, group);