public String prefixedId(String prefix) {
return useids ? EjbIds.get().prefixedId(prefix) : null;
}
public Collection getRelationships(Collection metadata) {
RelationManager relationManager = ejbUtils.createRelationManager(metadata);
return CollectionUtils.collect(Arrays.asList(relationManager.getRelations()),
new Transformer() {
public Object transform(Object arg0) {
return new RelationHolder((Relation) arg0);
}
});