Added copyright notices, added XMPPParseError throw instead of
System.exit(-1).