diff --git a/snaparchiver/src/main/java/org/tango/server/snap/archiver/SnapArchiver.java b/snaparchiver/src/main/java/org/tango/server/snap/archiver/SnapArchiver.java
index 358ca74a82e4b2c92d203600c6b678bf6952ba8b..283b05c9c85f60706ee5555c2a11dc4df29f611c 100644
--- a/snaparchiver/src/main/java/org/tango/server/snap/archiver/SnapArchiver.java
+++ b/snaparchiver/src/main/java/org/tango/server/snap/archiver/SnapArchiver.java
@@ -194,11 +194,13 @@ public final class SnapArchiver {
      * @param argin All the informations usefull to create a context ,Snapshot
      *              pattern).
      */
-    @Command(name = "CreateNewContext", inTypeDesc = "All the informations usefull to create a context ,Snapshot pattern)")
+    @Command(name = "CreateNewContext", inTypeDesc = "argin[0] = author name, argin[1] = context name, argin[2] = id (Not used, set it to 0)\n" +
+            "argin[3] = creation date (yyyy-[m]m-[d]d), argin[4] = reason, argin[5] = description and, the list of" +
+            " attributes that are included in the context", outTypeDesc = "The new assigned context ID")
     public void createNewContext(String[] argin) throws DevFailed {
         logger.info("Entering CreateNewContext - {}", Arrays.toString(argin));
-        SnapContext snapContext = new SnapContext(argin);
         try {
+            SnapContext snapContext = new SnapContext(argin);
             int contextID = SnapManagerApi.createContext(snapContext);
             logger.debug("Context with ID {} created", contextID);
         } catch (SnapshotingException e) {
diff --git a/snapmanager/src/main/java/org/tango/server/snap/manager/SnapManager.java b/snapmanager/src/main/java/org/tango/server/snap/manager/SnapManager.java
index e9c95d719ba36fd1914a63c2c49300f12e91aff1..8213263f773519bf6596b060600b06ce8c728cdf 100644
--- a/snapmanager/src/main/java/org/tango/server/snap/manager/SnapManager.java
+++ b/snapmanager/src/main/java/org/tango/server/snap/manager/SnapManager.java
@@ -172,16 +172,20 @@ public class SnapManager {
      *              pattern).
      * @return The new assigned context ID
      */
-    @Command(name = "CreateNewContext", inTypeDesc = "All the informations usefull to create a context ,Snapshot pattern)", outTypeDesc = "The new assigned context ID")
+    @Command(name = "CreateNewContext", inTyp eDesc = "argin[0] = author name, argin[1] = context name, argin[2] = id (Not used, set it to 0)\n" +
+            "argin[3] = creation date (yyyy-[m]m-[d]d), argin[4] = reason, argin[5] = description and, the list of" +
+            " attributes that are included in the context", outTypeDesc = "The new assigned context ID")
     public int createNewContext(String[] argin) throws DevFailed {
-        int argout;
+        int argout=0;
         logger.info("Entering createNewContext with {}", Arrays.toString(argin));
-        SnapContext snapContext = new SnapContext(argin);
         try {
+            SnapContext snapContext = new SnapContext(argin);
             argout = SnapManagerApi.createContext(snapContext);
         } catch (SnapshotingException e) {
             logger.error(e.toString(), e);
             throw e.toTangoException();
+        }catch (Throwable e){
+            e.printStackTrace();
         }
         logger.info("Context created is {}", argout);
         return argout;