Get a property as a object or throw exception.

@param key the property name
496786
@Override
    public final PObject getObject(final String key) {
        PObject result = optObject(key);
        if (result == null) {
            throw new ObjectMissingException(this, key);
        }
        return result;
    }
778156
public Object get(Object key) {
        Object val = super.get(key);
        if (val == null && key instanceof Option) {
            val = ((Option)key).defaultValue;
        }

        return val;
    }
3407
@SuppressWarnings("rawtypes")
public static Object getMappedProperty(Object bean, String name, String key)
       throws IllegalAccessException, InvocationTargetException, NoSuchMethodException,Exception
   {
       if(bean == null)
           throw new IllegalArgumentException("No bean specified");
       if(name == null)
           throw new IllegalArgumentException("No name specified");
       if(key == null)
           throw new IllegalArgumentException("No key specified");
       
       Object result = null;
       PropertyDescriptor descriptor = getPropertyDescriptor(bean, name);
       if(descriptor == null)
           throw new NoSuchMethodException("Unknown property '" + name + "'");
       if(descriptor instanceof JBPropertyDescriber)
       {
           Method readMethod = ((JBPropertyDescriber)descriptor).getMappedReadMethod();
           if(readMethod != null)
           {
               Object keyArray[] = new Object[1];
               keyArray[0] = key;
               result = readMethod.invoke(bean, keyArray);
           } else
           {
               throw new NoSuchMethodException("Property '" + name + "' has no mapped getter method");
           }
       } else
       {
           Method readMethod = descriptor.getReadMethod();
           if(readMethod != null)
           {
               Object invokeResult = readMethod.invoke(bean, new Object[0]);
               if(invokeResult instanceof Map)
                   result = ((Map)invokeResult).get(key);
           } else
           {
               throw new NoSuchMethodException("Property '" + name + "' has no mapped getter method");
           }
       }
       return result;
   }
550447
public Object get(String key) {
    	if(config != null) {
    		return config.get(key);
    	}
    	else
    		return null;
    }
1131165
@Override
    public Object getObject( final String    key,
                             final String    defaultClassName )
        throws
            UtilException
    {
        return formatObject( key, getString( key, defaultClassName ) );
    }
450385
public JSONObject getObject(String key) {
        Object tmp = objectMap.get(key);
        return tmp == null ? null
                : tmp instanceof JSONObject ? (JSONObject) tmp : null;
    }
911058
public String getProperty(String key) {
        key = UniformUtils.checkPropertyNameAndLowerCase(key);

        if (properties == null) {
            return null;
        }
        return properties.get(key);
    }
824150
@Override
	public Object get(java.lang.Object key) {
		return internalMap.get(key);
	}
26338
public Property get(String key) {
        for (Property property : properties) {
            if (property.getKey().equals(key)) {
                return property;
            }
        }
        return null;
    }
500045
public Object getAttribute(String key) {
		Object result;
		if (attributes == null) {
			result = null;
		} else {
			result = attributes.get(key);
		}
		return result;
	}
833446
@Override
	public Object setProperty(final String key, final String value) {
		lock.writeLock().lock();
		try {
			return properties.setProperty(key, value);
		} finally {
			lock.writeLock().unlock();
		}
	}
304148
@SuppressWarnings("unchecked")
    public static <OBJ> OBJ getObject(String key) {
        if (!exists()) {
            throwThreadCacheNotInitializedException(key);
        }
        return (OBJ) threadLocal.get().get(key);
    }
1214891
public String getProperty(String key)
    {
        if (properties == null)
            return null;
        String value = properties.get(key);
        if (value == null)
        {
            if (key.startsWith(PROPERTY_PREFIX))
                value = properties.get(key.substring(PROPERTY_PREFIX.length()));
            else
                value = properties.get(PROPERTY_PREFIX + key);
        }
        return value;
    }
669182
public Property getProperty(String key) {
        for (Property property : m_properties) {
            if (property.getKey().equals(key)) {
                return property;
            }
        }
        
        return null;
    }
1201695
public Object get(String key) throws BaseException {
		Object o = opt(key);
		if (o == null) {
			throw new BaseException(key + " not found.");
		}
		return o;
	}
71763
@Override
    public Object getValue(@NonNull String key) {
        if (key == null) { throw new IllegalArgumentException("key cannot be null."); }

        final int index = indexForColumnName(key);
        return index >= 0 ? getValue(index) : null;
    }
242007
public V get(Object key) {
        final int index = indexOfKey(key);
        return index >= 0 ? (V)mArray[(index<<1)+1] : null;
    }