class StringToIObjectResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {

        try {
            String jsonBody = String.valueOf(args[0]);
            return (T) new DSObject(jsonBody);
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create IObject from String.", e);
        }
    }

}