adding method buildPath

I need to add this method(buildPath), it was deleted in this PR http://bit.ly/1h79SC0
I am calling this method in UDC, this is an old PR in guvnor https://github.com/droolsjbpm/guvnor/pull/98
Thanks in advance