userportal,webadmin: Remove Java 7 construct in Frontend

- Frontend does not allow Java 7 constructs, so replaced it with
a standard java 6 version.

Change-Id: I79d7a8cff2cfbc8ea424b3f67266d34dbeb24b9a
Signed-off-by: Alexander Wels <awels@redhat.com>