diff --git a/src/AnyContent/Client/Repository.php b/src/AnyContent/Client/Repository.php
index <HASH>..<HASH> 100755
--- a/src/AnyContent/Client/Repository.php
+++ b/src/AnyContent/Client/Repository.php
@@ -30,8 +30,13 @@ class Repository
     }
 
 
-    public function getContentTypeDefinition($contentTypeName)
+    public function getContentTypeDefinition($contentTypeName = null)
     {
+        if ($contentTypeName == null AND $this->contentTypeDefinition)
+        {
+            return $this->contentTypeDefinition;
+        }
+
         if ($this->hasContentType($contentTypeName))
         {
             $cmdl                  = $this->client->getCMDL($contentTypeName);
- added possibility to retrieve content type definition of a repository object without specifying the contentTypeName (if a content type is selected)