You mean put that code into the getDocumentId(), ok would make sense.