public StringBuilder promptTo(StringBuilder sb, String indent) { String indent2 = indent + " "; StringUtils.appendLine(sb, indent, "ApplicationEntity[title: ", AETitle); StringUtils.appendLine(sb, indent2, "alias titles: ", AETitleAliases); StringUtils.appendLine(sb, indent2, "desc: ", description); StringUtils.appendLine(sb, indent2, "acceptor: ", associationAcceptor); StringUtils.appendLine(sb, indent2, "initiator: ", associationInitiator); StringUtils.appendLine(sb, indent2, "installed: ", getAeInstalled()); for (Connection conn : connections) conn.promptTo(sb, indent2).append(StringUtils.LINE_SEPARATOR); for (TransferCapability tc : getTransferCapabilities()) tc.promptTo(sb, indent2).append(StringUtils.LINE_SEPARATOR); return sb.append(indent).append(']'); }