class JmsRealmFactory {

	public List<String> getRegisteredDatasourceRealmNamesAsList() {
		Iterator<String> it = getRegisteredRealmNames();
		List<String> result = new ArrayList<String>();
		while (it.hasNext()) {
			String jr = (String) it.next();
			if (StringUtils.isNotEmpty(getJmsRealm(jr).getDatasourceName())) {
				result.add(jr);
			}
		}
		return result;
	}

	private  JmsRealmFactory();

}