Added jaxb classes
Modified it as per jaxb
used stacks push instead of add
Modified code for jaxb handling