nit: String format would make this code easy to read. 
`String.format("\n\t '%s' Id='%s' Lock name='%s' Lock owner Id='%s' Lock owner name='%s'" , threadInfo.getThreadName(), threadInfo.getThreadId(), threadInfo.getLockName(), threadInfo.getLockOwnerId(), threadInfo.getLockOwnerName())`