Index: /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/Command.java
===================================================================
--- /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/Command.java	(revision 3401)
+++ /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/Command.java	(revision 3402)
@@ -103,10 +103,11 @@
 	 * @return {@link Command} object corresponding to the name
 	 * @throws IllegalArgumentException
-	 *             If 'name' is <code>null</code>, empty, or does not exist.
+	 *             if specified name has no equivalent command
+	 * @throws NullPointerException
+	 *             if <code>name</code> if null or empty
 	 */
 	public static Command valueOf(final String name) {
 		if (Utils.isEmpty(name))
-			throw new IllegalArgumentException(
-					"Parameter name is null or empty");
+			throw new NullPointerException("Parameter name is null or empty");
 
 		Command command = getCommands.get(name);
@@ -114,5 +115,5 @@
 			command = postCommands.get(name);
 		if (command == null)
-			throw new IllegalArgumentException("No suitable command found");
+			throw new IllegalArgumentException("No equivalent command found");
 
 		return command;
Index: /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ExtensionsHandler.java
===================================================================
--- /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ExtensionsHandler.java	(revision 3401)
+++ /FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/handlers/ExtensionsHandler.java	(revision 3402)
@@ -39,5 +39,5 @@
  * 
  * @version $Id$
- * @deprecated functionality merged into {@link ResourceType}. Class will be
+ * @deprecated Functionality merged into {@link ResourceType}. Class will be
  *             removed in FCKeditor.Java 2.6.
  */
