[added] extended profile attributes samples

added a method on the java service to retrieve the extended attributes
added a Java sample to display the extended attributes
added a JavaScript sample to display the extended attributes