class ManagerUtil {
/**
* Returns the internal action id contained in the given action id.
*
* @param actionId the action id prefixed by the internal action
* id as received from Asterisk.
* @return the internal action id that has been added before.
* @see #addInternalActionId(String, String)
*/
public static String getInternalActionId(String actionId)
{
final int delimiterIndex;
if (actionId == null)
{
return null;
}
delimiterIndex = actionId.indexOf(INTERNAL_ACTION_ID_DELIMITER);
if (delimiterIndex > 0)
{
return actionId.substring(0, delimiterIndex);
}
else
{
return null;
}
}
}