<BUG>for ( Relationship rel : thing.getRelationships( direction ) ){</BUG><CONTEXT>Output out, boolean verbose, Direction direction, String prefixString,String postfixString, Map<String, Object> filterMap,boolean caseInsensitiveFilters, boolean looseFilters )throws ShellException, RemoteException{<extra_id_0>String type = rel.getType().name();boolean matches = filterMap.isEmpty();</CONTEXT>
for ( Relationship rel : sortRelationships(thing.getRelationships( direction ) ) )