Removed propriotory and unused Sun imports.
Replaced getTextContent() with our own implementation.