nicknack-server/src/main/java/com/github/kmbulebu/nicknack/server/web/StateDefinitionsController.java
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<StateDefinitionResource> getStateDefinitions() throws StateDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<StateDefinitionResource> resources = getStateDefinitions(stateDefinitionService.getStateDefinitions());
		
		
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<StateDefinitionResource> getStateDefinitions() throws StateDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<StateDefinitionResource> resources = getStateDefinitions(stateDefinitionService.getStateDefinitions());
		
		
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
TODO Refactor HATEOAS link building. Time for ResourceAssembler or moving this stuff up the service. Although moving it up will create a circular dep.