Builds an instance of the layer record object.
Use the static pseudo-constructor instead it. See Adding and Naming Layers.