refactored resource.schema.
added method from schema dinamicaly for new resource.