fix Element.java compile errors

Signed-off-by: Mike Glorioso <mike.glorioso@gmail.com>
Merge remote-tracking branch 'origin/deprecateGetLocator' into deprecateGetLocator