Java EE7 Sample codes