container/profiles/src/main/java/org/mobicents/slee/runtime/facilities/profile/ProfileFacilityImpl.java
public Collection<ProfileID> getProfiles(String profileTableName)
			throws NullPointerException, UnrecognizedProfileTableNameException,
			TransactionRolledbackLocalException, FacilityException {

		if (logger.isTraceEnabled()) {
			logger.trace("getProfiles( profileTableName = "
					+ profileTableName + " )");
		}
		
		profileManagement.getSleeContainer().getTransactionManager().mandateTransaction();

		try {
			return profileManagement.getProfileTable(
							profileTableName).getProfiles();			
		} catch (NullPointerException e) {
			throw e;
		} catch (UnrecognizedProfileTableNameException e) {
			throw e;		
		} catch (Throwable e) {
			throw new FacilityException(e.getMessage(), e);
		}
	}
public Collection<ProfileID> getProfiles(String profileTableName)
			throws NullPointerException, UnrecognizedProfileTableNameException,
			TransactionRolledbackLocalException, FacilityException {

		if (logger.isTraceEnabled()) {
			logger.trace("getProfiles( profileTableName = "
					+ profileTableName + " )");
		}
		
		profileManagement.getSleeContainer().getTransactionManager().mandateTransaction();

		try {
			return profileManagement.getProfileTable(
							profileTableName).getProfiles();			
		} catch (NullPointerException e) {
			throw e;
		} catch (UnrecognizedProfileTableNameException e) {
			throw e;		
		} catch (Throwable e) {
			throw new FacilityException(e.getMessage(), e);
		}
	}
Get a collection of ProfileID objects that identify all the profiles
contained in the specified profile table. The collection returned is
immutable. Any attempt to modify it, either directly or indirectly, will
result in a java.lang.UnsupportedOperationException being thrown.

Note: A profile identifier for the profile table's default profile will
not be included in the collection returned by this method as the default
profile has no such identifier.

This method is a required transactional method.

@deprecated
@param profileTableName
- the name of the profile table.
@return a read-only collection of ProfileID objects identifying the
profiles contained in the specified profile table.
@throws java.lang.NullPointerException
- if profileTableName is null.
@throws UnrecognizedProfileTableNameException
- if a profile table with the specified name does not exist.
@throws TransactionRolledbackLocalException
- if this method was invoked without a valid transaction
context and the transaction started by this method failed to
commit.
@throws FacilityException
- if the profile identifies could not be obtained due to a
system-level failure.