modified get linkedprofile in DocumentUtils.java