Formulate and Returns Properties from the given string
Map attributes = new HashMap();
if (attributesStr == null) return attributes;
final CLITokenizer attrTok = new CLITokenizer(attributesStr, ATTRIBUTE_DELIMITER);
while (attrTok.hasMoreTokens()) {
final String nameAndvalue = attrTok.nextToken();
final CLITokenizer nameTok = new CLITokenizer(nameAndvalue, ATTRIBUTE_VALUE_DELIMITER);
if (nameTok.countTokens() == 2)
{
attributes.put(nameTok.nextTokenWithoutEscapeAndQuoteChars(),
nameTok.nextTokenWithoutEscapeAndQuoteChars());
}
else
{
throw new CommandValidationException(getLocalizedString("InvalidAttributeSyntax"));
}
}
CLILogger.getInstance().printDebugMessage("Got the Attributes List : " + attributes.toString());
return attributes;