private ConfigurationSerializable getSerializable(Class<?> type)
    {
        Constructor constructor = null;

        for(Constructor c : type.getDeclaredConstructors())
        {
            if(c.getParameterTypes().length == 0)
            {
                System.out.println("Found valid constructor in serializable.");
                constructor = c;
            }
        }

        constructor.setAccessible(true);
        ConfigurationSerializable serializable = null;

        try {
            serializable = (ConfigurationSerializable) constructor.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (IllegalAccessException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } catch (InvocationTargetException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

        return serializable;
    }