Gets the attribute for the specified type, or returns null if there is no attribute for the given type.
the attribute, or null if not present
the type of the attribute