public function getFieldsByDatatype($objectName, $datatype)
    {
        $datatypeFieldConfigurations = array();

        $fieldConfigurations = $this->getFields($objectName);
        foreach ($fieldConfigurations as $fieldConfiguration) {
            if ($fieldConfiguration['datatype'] == $datatype) {
                $datatypeFieldConfigurations[] = $fieldConfiguration;
            }
        }

        return $datatypeFieldConfigurations;
    }