Add defined resource type to add in dependencies.
Rename custom type to not conflict with new defined resource type.
Add dependencies class.
Add feature for library confinement by the custom type.