//Building organization
BusinessLifeCycleManager blm = rs.getBusinessLifeCycleManager();
Organization organization = blm.createOrganization(blm.createInternationalString("Red Hat/JBossESB"));
organization.setDescription(blm.createInternationalString("Red Hat/JBoss Professional Open Source, Services for the JBossESB"));
User user = blm.createUser();
organization.setPrimaryContact(user);
PersonName personName = blm.createPersonName("JBossESB");
TelephoneNumber telephoneNumber = blm.createTelephoneNumber();
telephoneNumber.setNumber("404 467-8555");
telephoneNumber.setType(null);
PostalAddress address = blm.createPostalAddress("3340",
"Peachtree Road, NE, Suite 1200", "Atlanta", "GA", "USA",
"30326", "Office");
Collection<PostalAddress> postalAddresses = new ArrayList<PostalAddress>();
postalAddresses.add(address);
Collection<EmailAddress> emailAddresses = new ArrayList<EmailAddress>();
EmailAddress emailAddress = blm
.createEmailAddress("jbossesb@jboss.com");
emailAddresses.add(emailAddress);
Collection<TelephoneNumber> numbers = new ArrayList<TelephoneNumber>();
numbers.add(telephoneNumber);
user.setPersonName(personName);
user.setPostalAddresses(postalAddresses);
user.setEmailAddresses(emailAddresses);
user.setTelephoneNumbers(numbers);
// Scout does not support this (yet), so leaving it out for now.
// ClassificationScheme cScheme = getClassificationScheme(blm,
// blm.createInternationalString("uddi-org:general_keywords"), blm.createInternationalString(""));
// Classification classification = blm.createClassification(cScheme,