[formatter2] fixes bug 453283: java.lang.IllegalStateException

"Only EAttributes and CrossReferences allowed"
[formatter2] updated JavaDoc
Merge "[formatter2] updated JavaDoc"